package org.oliver.crp.samtrack.client.ui.data;

import com.smartgwt.client.widgets.grid.ListGridRecord;

public class SampleRecord extends ListGridRecord{
	
	public SampleRecord() {}
	
	public SampleRecord(String icon,
						String sampleNumber,
						String species,
						String description,
						String collectionDate,
						String responsible) {
		setIcon(icon);
		setSampleNumber(sampleNumber);
		setSpecies(species);
		setDescription(description);
		setCollectionDate(collectionDate);
		setResponsible(responsible);
	}

	private void setResponsible(String responsible) {
		setAttribute("responsible", responsible);		
	}

	private void setCollectionDate(String collectionDate) {
		setAttribute("collecionDate", collectionDate);		
	}

	private void setDescription(String description) {
		setAttribute("description", description);		
	}

	private void setSpecies(String species) {
		setAttribute("species", species);		
	}

	private void setSampleNumber(String sampleNumber) {
		setAttribute("sampleNumber", sampleNumber);		
	}

	private void setIcon(String icon) {
		setAttribute("icon", icon);		
	}
	
	private String getIcon() {
		return getAttributeAsString("icon");
	}

	private String getSampleNumber() {
		return getAttributeAsString("sampleNumber");
	}
	private String getSpecies() {
		return getAttributeAsString("species");
	}
	private String getDescription() {
		return getAttributeAsString("description");
	}
	private String getCollectionDate() {
		return getAttributeAsString("collectionDate");
	}
	private String getResponsible() {
		return getAttributeAsString("responsible");
	}
}
